package cn.edu.sgu.www.mhxysy.dto.xingyin;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class XingyinSkillCategoryDTO implements DataTransferObject {

	@ApiModelProperty(value = "ID")
	private Integer id;

	/**
	 * 技能名称
	 */
	@NotBlank(message = "技能名称" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "技能名称", required = true)
	private String name;

	/**
	 * 技能描述
	 */
	@NotBlank(message = "技能描述" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "技能描述", required = true)
	private String note;

	/**
	 * 技能类型
	 */
	@Positive(message = "技能类型" + CustomMessages.ILLEGAL)
	@NotNull(message = "技能类型" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "技能类型", required = true)
	private Integer type;

	/**
	 * 门派ID
	 */
	@Positive(message = "门派ID" + CustomMessages.ILLEGAL)
	@NotNull(message = CustomMessages.SCHOOL_ID_NOT_NULL)
	@ApiModelProperty(value = "门派ID", required = true)
	private Integer schoolId;
}